package com.kevin.service.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class ScoreDetailScoreDTO {
    @NotNull
    @ApiModelProperty(value = "答题id")
    private Long detailId;

    @ApiModelProperty(value = "分数")
    private BigDecimal score;

    @ApiModelProperty(value = "填空题时用,存储每一道选项具体的分值")
    private List<Detail> scoreResultList;

    @Data
    public static class Detail {
        private String id;
        private BigDecimal scoreResult;
    }
}
